import request from '@/utils/request'

export function getTeacherList(current, limit, teacherQuery) {
  return request({
    url: `/eduService/edu-teacher/pageTeacherCondition/${current}/${limit}`,
    method: 'post',
    data: teacherQuery
  })
}

//删除
export function deleteTeacherId(id) {
  return request({
    url: `/eduService/edu-teacher/${id}`,
    method: 'delete',
  })
}
//添加讲师
export function addTeacher(teacher) {
  return request({
    url: `/eduService/edu-teacher/addTeacher`,
    method: 'post',
    data: teacher
  })
}
//获取讲师信息
export function getTeacherInfo(id) {
  return request({
    url: `/eduService/edu-teacher/getTeacher/${id}`,
    method: 'get',
  })
}
//修改讲师
export function updateTeacher(teacher) {
  return request({
    url: `/eduService/edu-teacher/updateTeacher`,
    method: 'post',
    data: teacher
  })
}

//获取所有讲师信息
export function getAllTeacherInfo() {
  return request({
    url: `/eduService/edu-teacher/findAll`,
    method: 'get',
  })
}